<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<tiles:insertTemplate template="admin-menu.jsp">
	<tiles:putAttribute name="body"><div>
<h1>Edycja patrona</h1>
<form action="editGuardian"  method="post">
<s:hidden name="guardianId"/>
<table>
	<tr>
		<td><s:textfield name="name" label="Nazwa patrona" /></td>
	</tr>
	<tr>
		<td><label for="type">Bonus</label><select name="bonus">
			<option value="FIRE" <s:if test="bonus == @pl.un4giv3n.mightvsmagic.entity.BonusType@FIRE">selected="selected"</s:if>>Ogień - bonus do dmg/def</option>
			<option value="EARTH"<s:if test="bonus == @pl.un4giv3n.mightvsmagic.entity.BonusType@EARTH">selected="selected"</s:if>>Ziemia - bonus do dmg/def</option>
			<option value="WIND"<s:if test="bonus == @pl.un4giv3n.mightvsmagic.entity.BonusType@WIND">selected="selected"</s:if>>Wiatr - bonus do dmg/def</option>
			<option value="WATER"<s:if test="bonus == @pl.un4giv3n.mightvsmagic.entity.BonusType@WATER">selected="selected"</s:if>>Woda - bonus do dmg/def</option>
			<option value="STRENGTH"<s:if test="bonus == @pl.un4giv3n.mightvsmagic.entity.BonusType@STRENGTH">selected="selected"</s:if>>Siła - bonus do atrybutu</option>
			<option value="STAMINA"<s:if test="bonus == @pl.un4giv3n.mightvsmagic.entity.BonusType@STAMINA">selected="selected"</s:if>>Wytrzymałość - bonus do atrybutu</option>
			<option value="MANA"<s:if test="bonus == @pl.un4giv3n.mightvsmagic.entity.BonusType@MANA">selected="selected"</s:if>>Mana - bonus do atrybutu</option>
			<option value="ATTACK"<s:if test="bonus == @pl.un4giv3n.mightvsmagic.entity.BonusType@ATTACK">selected="selected"</s:if>>Atak - bonus do atrybutu</option>
			<option value="PARRY"<s:if test="bonus == @pl.un4giv3n.mightvsmagic.entity.BonusType@PARRY">selected="selected"</s:if>>Unik - bonus do atrybutu</option>
			<option value="LIFE"<s:if test="bonus == @pl.un4giv3n.mightvsmagic.entity.BonusType@LIFE">selected="selected"</s:if>>Życie - bonus do atrybutu</option>
			<option value="GOLD"<s:if test="bonus == @pl.un4giv3n.mightvsmagic.entity.BonusType@GOLD">selected="selected"</s:if>>Złoto - bonus do złota z pracy</option>
			<option value="MAGIC_EXP"<s:if test="bonus == @pl.un4giv3n.mightvsmagic.entity.BonusType@MAGIC_EXP">selected="selected"</s:if>>Dośw magiczne - bonus expa z treningu</option>
			<option value="FIGHT_EXP"<s:if test="bonus == @pl.un4giv3n.mightvsmagic.entity.BonusType@FIGHT_EXP">selected="selected"</s:if>>Dośw bitewne - bonus expa z treningu</option>
		</select></td>
	</tr>
	<tr>
		<td><s:textarea name="desc" label="Opis" cols="50" rows="25"/></td>
	</tr>
	<tr>
		<td><s:submit value="Zapisz" /></td>
	</tr>
</table>
</form>
</div>
	</tiles:putAttribute>
</tiles:insertTemplate>